The VBMCISTR sample shows how to use the function mciSendString in Visual Basic to play multimedia files. The sample also uses the MMControl custom control from the MCI.VBX custom-control file to play multimedia files. You may find it easier to use the MMControl to manipulate multimedia files than it is to use mciSendString commands.
This sample only demonstrates a few of the features of MMControl and a few of the commands strings that mciSendString can use. The Microsoft Visual Basic Professional Features Book 1 contains a complete description of all of the features of the custom control, MMControl. You can find more information on command strings you can send using mciSendString in the following resources:
Multimedia Programmer's Reference
This book ships with the Windows 3.1 Software Development Kit (SDK)
Multimedia Programmer's Guide
This book ships with the Windows 3.1 SDK
MCISTRWH.HLP
This Windows Help file ships with Microsoft Visual C++ Professional Edition version 1.X.
DK_DOC.MVB or DK_DOC.HLP
These Windows Help files ship with the Video for Windows Development Kit version 1.1. These help files also contain information on the controls from the MCI.VBX and the MCIWNDX.VBX custom-control files.
See Also:
=========
The Video for Windows Development Kit version 1.1 comes with a robust sample of how to use the features of the custom-control file, MCIWNDX.VBX. This sample is called VBMCITST.
There is a topic in the DK_DOC.HLP and DK_DOC.MVB files titled "Comparing MCIWNDX.VBX to MCI.VBX."
More Information
================
The source files of the VBMCISTR sample were compressed using PKZip version 2.04g. The zipped file is called VBMCI.ZIP. The following files are included in the zip file:
form1.frm
frmabout.frm
global.bas
mcivbx.frm
opendlg.frm
readme.txt
vbmcistr.mak
Legal Stuff
==========
THE INFORMATION AND CODE PROVIDED HEREUNDER (COLLECTIVELY REFERRED TO
AS "SOFTWARE") IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN
NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR
LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE
FOREGOING LIMITATION MAY NOT APPLY.
This Software may be copied and distributed royalty-free subject to
the following conditions:
1. You must copy all Software without modification and must include
all pages, if the Software is distributed without inclusion in your
software product. If you are incorporating the Software in
conjunction with and as a part of your software product which adds
substantial value, you may modify and include portions of the
Software.
2. You must place all copyright notices and other protective
disclaimers and notices contained on the Software on all copies of
the Software and your software product.
3. Unless the Software is incorporated in your software product which
adds substantial value, you may not distribute this Software for
profit.
4. You may not use Microsoft's name, logo, or trademarks to market
your software product.
5. You agree to indemnify, hold harmless, and defend Microsoft and its
suppliers from and against any claims or lawsuits, including
attorneys' fees, that arise or result from the use or distribution
of your software product and any modifications to the Software.